home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gCurrentPosC, gNbItemC
- if getAt(gNbItemC, 3) <= 21 then
- return
- end if
- set inc to 0.0
- repeat while the mouseDown
- if rollOver(29) then
- if the name of cast the castNum of sprite 29 starts "OF" then
- set TempNum to the castNum of sprite 29 + 1
- set the castNum of sprite 29 to TempNum
- end if
- set inc to inc + 0.075
- if (getAt(gCurrentPosC, 3) + integer(inc)) > (getAt(gNbItemC, 3) - 21) then
- setAt(gCurrentPosC, 3, getAt(gNbItemC, 3) - 21)
- else
- setAt(gCurrentPosC, 3, getAt(gCurrentPosC, 3) + integer(inc))
- end if
- SetWinContenu2(3, 10)
- next repeat
- end if
- if the name of cast the castNum of sprite 29 starts "ON" then
- set TempNum to the castNum of sprite 29 - 1
- set the castNum of sprite 29 to TempNum
- updateStage()
- end if
- end repeat
- if the name of cast the castNum of sprite 29 starts "ON" then
- set TempNum to the castNum of sprite 29 - 1
- set the castNum of sprite 29 to TempNum
- updateStage()
- end if
- ActiveFieldC(3)
- end
-